<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<script src="webpage/material/partTemplate/PTemplate.js"></script>
<script src="webpage/material/common/selectProduct.js"></script>
<style>
th{
bgcolor:#E6E6E6;
}
th,td{
width:120px;
}
</style>
<div class="datagrid-toolbar">
<button class="btn btn-success" style="margin:5px;"  onclick="addBtnClick();"><i class="icon-pencil align-top bigger-125"></i>选择产品</button>
<button class="btn btn-danger" style="margin:5px;"  onclick="delBtnClick();"><i class="icon-trash align-top bigger-125"></i>移除产品</button>

</div>
<div class="table-responsive" style="width:100%;">
<table  id="product_table" class="table table-striped table-bordered table-hover">
	<thead>
		<tr>
	
		<th style="display: none">
			id
		</th>
		<th >
			序号
		</th>
		<th>
			产品名称
		</th>
		<th>
			个数
		</th>
		<th>
			产品分类
		</th>
		<th>
			生产厂家
		</th>
		<th>
			型号
		</th>
		<th>
			规格
		</th>
	</tr>
	</thead>
	<tbody id="add_main_table">
	
		<c:forEach items="${productTemplateList}" var="poVal"
			varStatus="stuts">
			<tr>
				<td  style="display:none">
				<input type="hidden" name="listPT[${stuts.index }].productId.id" value="${poVal.productId.id}"/>	
				</td>
				<td >
					<input style="width: 20px;" type="checkbox" name="ck" />
				</td>
				<td >
					${poVal.productId.name}
				</td>
				<td >
				    <input type="text" datatype="*" style="width: 100px;" name="listPT[${stuts.index }].productSum" value="${poVal.productSum}" />	
				</td>
				<td >
					${poVal.productId.typeThree.name}
				</td>
				<td >
					${poVal.productId.manufacturer}
				</td>
				<td >
					${poVal.productId.model}
				</td>
				<td >
					${poVal.productId.specification}
				</td>
			</tr>
		</c:forEach>
 
	</tbody>
</table>
</div>
